for (final RoomClassification roomClassification : roomClassifications) { if (roomClassification.getParentRoomClassification() == parentRoomClassification && code.equals(roomClassification.getCode())) { return roomClassification;
if (code != null) { for (final RoomClassification roomClassification : roomClassifications) { if (roomClassification.getParentRoomClassification() == parentRoomClassification && code.equals(roomClassification.getCode())) { return roomClassification; }
    public static RoomClassification findRoomClassificationByCode(	    final Collection<RoomClassification> roomClassifications,	    final RoomClassification parentRoomClassification, final Integer code) {	for (final RoomClassification roomClassification : roomClassifications) {	    if (roomClassification.getParentRoomClassification() == parentRoomClassification		    && code.equals(roomClassification.getCode())) {		return roomClassification;	    }	}	return null;    }