public CreateNewUnitParameters(String departmentID, String degreeID, OrganizationalStructureBackingBean bean, int mode) throws NumberFormatException,
public CreateNewUnitParameters(OrganizationalStructureBackingBean bean, int mode) throws NumberFormatException,
        public CreateNewUnitParameters(String departmentID, String degreeID,                OrganizationalStructureBackingBean bean, int mode) throws NumberFormatException,                FenixFilterException, FenixServiceException {            if (mode == 1) {                this.departmentID = (bean.getDepartmentID() != null && !bean.getDepartmentID().equals(                        "#")) ? Integer.valueOf(bean.getDepartmentID()) : null;                this.degreeID = (bean.getDegreeID() != null && !bean.getDegreeID().equals("#")) ? Integer                        .valueOf(bean.getDegreeID())                        : null;            } else if (mode == 2) {                this.departmentID = (bean.getUnit().getDepartment() != null) ? bean.getUnit()                        .getDepartment().getIdInternal() : null;                this.degreeID = (bean.getUnit().getDegree() != null) ? bean.getUnit().getDegree()                        .getIdInternal() : null;            }        }