public static Object createInstance ( String name , String library , Object ... args ) throws Exception { Class < ? > type = getType ( name , library ) ; if ( type == null ) throw new NotFoundException ( null , "TYPE_NOT_FOUND" , "Type " + name + "," + library + " was not found" ) . withDetails ( "type" , name ) . withDetails ( "library" , library ) ; return createInstanceByType ( type , args ) ; }
Creates an instance of an object type specified by its name and library where it is defined .