private ArrayList<DirectoryCollaboratorFunctionsItem> getAvailableFunctionList() throws ClipsException {
String clinicType = UserInfo.get().getCollaborator().getLpu().getClinicType().getExtKey().trim();
ArrayList<DirectoryCollaboratorFunctionsItem> availableFunctions = new ArrayList<DirectoryCollaboratorFunctionsItem>();
DirectoryCollaboratorItem collaborator = UserInfo.get().getCollaborator();
DirectoryCollaboratorFunctions dcf = DirectoryLocator.getDirectory(DirectoryCollaboratorFunctions.class);
Selector<DirectoryCollaboratorFunctionsItem> functions = dcf.getFilteredItems(collaborator);
DirectorySpecialityItem spec = serRenLocal.getSpeciality();
DirectoryReceptionTypeItem recType = null;
if (serRenLocal.getContractService() != null
&& serRenLocal.getContractService().getReceptionType() != null
&& !serRenLocal.getContractService().getReceptionType().isNullItem()) {