int iLocalId = Integer.parseInt(id);
if (!dataMan.existsMetadata(iLocalId)) {
throw new IllegalArgumentException("Metadata with identifier '" + id + "' not found.");
}
if (!accessMan.canEdit(context, id)) {
throw new OperationNotAllowedEx();
}
int iGroupOwner = Integer.parseInt(groupOwner);
Group group = context.getBean(GroupRepository.class).findOne(iGroupOwner);