nl: load all resourcegroups for the given type concode_field_sep EntityManager entityManager concode_elem_sep ResourceRepository resourceRepository concode_elem_sep ResourceRelationService resourceRelationService concode_elem_sep ResourceTypeDomainService resourceTypeDomainService concode_elem_sep ForeignableService foreignableService concode_elem_sep ResourceGroupPersistenceService resourceGroupService concode_field_sep Set<ResourceGroupEntity> getApplicationsFromOtherResourcesInGroup concode_elem_sep ResourceGroupEntity getResourceGroupWithAllResources concode_elem_sep void addResourceTypeRelation concode_elem_sep void removeRelation concode_elem_sep void addRelation concode_elem_sep void removeResourceTypeRelation
code: List < ? extends NamedIdentifiable > function ( String arg0 , Integer arg1 ) { ResourceEntity loc0 = resourceRepository . loadWithResourceGroupAndRelatedResourcesForId ( arg1 ) ; return resourceGroupService . loadGroupsForTypeNameExcludeSelected ( arg0 , Collections . singletonList ( loc0 . getResourceGroup ( ) . getId ( ) ) ) ; }