@WebRemote
@Restrict("#{identity.loggedIn}")
public String[] listTypesInPackage(String packageUUID) throws SerializationException {
if ( Contexts.isSessionContextActive() ) {
Identity.instance().checkPermission( new PackageUUIDType( packageUUID ), "package.readoly" );
}
PackageItem pkg = this.repository.loadPackageByUUID( packageUUID );
List<String> res = new ArrayList<String>();
AssetItemIterator it = pkg.listAssetsByFormat( new String[]{AssetFormats.MODEL, AssetFormats.DRL_MODEL} );