<s>[INST] checks if given permission is available . if not a checked exception is thrown with error message containing extrainfo part . concode_field_sep EntityManager entityManager concode_elem_sep PermissionService permissionService concode_elem_sep ResourceTypeProvider resourceTypeProvider concode_field_sep boolean hasPermissionToEditPropertiesOfResource concode_elem_sep boolean canCreateAppAndAddToAppServer concode_elem_sep boolean hasPermissionToAddRelation concode_elem_sep boolean hasPermissionToDeploy concode_elem_sep boolean canCopyFromResource concode_elem_sep void checkPermissionAndFireCheckedException concode_elem_sep boolean hasPermissionToDeleteRelation concode_elem_sep boolean hasPermissionToDeleteRelationType concode_elem_sep boolean hasPermissionToRenameResource concode_elem_sep boolean hasPermissionToRemoveDefaultInstanceOfResType concode_elem_sep boolean hasPermission concode_elem_sep boolean hasPermission concode_elem_sep boolean hasPermissionToTemplateModify concode_elem_sep boolean hasPermissionToEditPropertiesByResource concode_elem_sep boolean canCreateResourceInstance concode_elem_sep boolean canCreateResourceInstance concode_elem_sep boolean hasPermissionToRenameResourceType [/INST] void function ( Permission arg0 , String arg1 ) { permissionService . checkPermissionAndFireException ( arg0 , arg1 ) ; </s>