src/main/java/js/container/ManagedClass.java
private InstanceScope loadInstanceScope(Config descriptor) throws ConfigException {
		InstanceScope instanceScope = descriptor.getAttribute("scope", InstanceScope.class, InstanceScope.APPLICATION);
		if (!container.hasScopeFactory(instanceScope)) {
			throw new ConfigException("Not registered managed instance scope value |%s|. See class descriptor |%s|.", instanceScope, descriptor);
		}
		return instanceScope;
	}
private InstanceScope loadInstanceScope(Config descriptor) throws ConfigException {
		InstanceScope instanceScope = descriptor.getAttribute("scope", InstanceScope.class, InstanceScope.APPLICATION);
		if (!container.hasScopeFactory(instanceScope)) {
			throw new ConfigException("Not registered managed instance scope value |%s|. See class descriptor |%s|.", instanceScope, descriptor);
		}
		return instanceScope;
	}
Return instance scope loaded from class descriptor, <code>scope</code> attribute. If scope is not defined use
{@link InstanceScope#APPLICATION} as default value.

@param descriptor managed class descriptor.
@return loaded instance scope.
@throws ConfigException if there is no {@link ScopeFactory} registered for loaded instance scope.