if (this.cascadeType != null) { // && this.cascadeType.equals(CascadeType.PERSIST)) {
securityProfileId = securityProfileDAO.save(library.getSecurityProfile());
}
MapSqlParameterSource params = new MapSqlParameterSource();
params.addValue("alias", library.getAlias())
.addValue("accession", library.getAccession())
.addValue("description", library.getDescription())
.addValue("locationBarcode", library.getLocationBarcode())
.addValue("paired", library.getPaired())
.addValue("sample_sampleId", library.getSample().getId())