Code example for MappingException

0
	public static void injectParameters(Object type, Properties parameters) { 
		if ( ParameterizedType.class.isInstance( type ) ) { 
			( (ParameterizedType) type ).setParameterValues(parameters); 
		} 
		else if ( parameters!=null && !parameters.isEmpty() ) { 
			throw new MappingException( "type is not parameterized: " + type.getClass().getName() ); 
		} 
	} 
 
	public CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters) { 
		return customComponent( typeClass, parameters, typeScope ); 
	} 
 
	/** 
	 * @deprecated Only for use temporary use by {@link org.hibernate.Hibernate} 
	 */ 
	@Deprecated 
    @SuppressWarnings({ "JavaDoc" }) 
	public static CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters, TypeScope scope) { 
		try {