src/main/java/js/container/ManagedClass.java
private InstanceType loadInstanceType(Config descriptor) throws ConfigException {
		InstanceType instanceType = descriptor.getAttribute("type", InstanceType.class, InstanceType.POJO);
		if (!container.hasInstanceFactory(instanceType)) {
			throw new ConfigException("Not registered managed instance type value |%s|. See class descriptor |%s|.", instanceType, descriptor);
		}
		return instanceType;
	}
private InstanceType loadInstanceType(Config descriptor) throws ConfigException {
		InstanceType instanceType = descriptor.getAttribute("type", InstanceType.class, InstanceType.POJO);
		if (!container.hasInstanceFactory(instanceType)) {
			throw new ConfigException("Not registered managed instance type value |%s|. See class descriptor |%s|.", instanceType, descriptor);
		}
		return instanceType;
	}
Return instance type loaded from class descriptor, <code>type</code> attribute. If type is not defined uses
{@link InstanceType#POJO} as default value.

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