class MetadataApiService {

    @PostAuthorize("hasRole('ADMIN') OR @grantPermissionManager.metadataPermission(returnObject, 'READ')")
    public MetadataEntry findMetadataEntityIdByName(String entityName, AclClass entityClass) {
        return metadataManager.findMetadataEntryByNameOrId(entityName, entityClass);
    }

}