final int index = getCode().lastIndexOf('.', getCode().length()); if (index > 0) { final String parentAbsoluteCode = getCode().substring(0, index); final RoomClassification roomClassification = findRoomClassificationByPresentationCode(parentAbsoluteCode); if (roomClassification == null) { throw new DomainException("error.unexisting.room.classification"); } else { return roomClassification; } } else { return null; }
final int index = getCode().lastIndexOf('.', getCode().length()); if (index > 0) { final String parentAbsoluteCode = getCode().substring(0, index); final RoomClassification roomClassification = findRoomClassificationByPresentationCode(parentAbsoluteCode); if (roomClassification == null) { throw new DomainException("error.unexisting.room.classification"); } else { return roomClassification;
		public RoomClassification getParentRoomClassification() {			final int index = getCode().lastIndexOf('.', getCode().length());			if (index > 0) {				final String parentAbsoluteCode = getCode().substring(0, index);				final RoomClassification roomClassification = findRoomClassificationByPresentationCode(parentAbsoluteCode);				if (roomClassification == null) {					throw new DomainException("error.unexisting.room.classification");				} else {					return roomClassification;				}			} else {				return null;			}		}