class StudentMappingByMartikelNumber extends AbstractMappingByInstitutionalIdentifier {

    public Identity tryToMap(Student student) {
        Identity identity = tryToMap(UserConstants.INSTITUTIONAL_MATRICULATION_NUMBER, student.getRegistrationNr());
        if (identity == null) {
            identity = tryToMap(UserConstants.INSTITUTIONAL_MATRICULATION_NUMBER, StringUtils.remove(student.getRegistrationNr(), "-"));
        }
        return identity;
    }

}