public void storeIfNew(final DbArtifact fromClient) {
        final DbArtifact existing = repositoryHandler.getArtifact(fromClient.getGavc());

        if(existing != null){
            existing.setLicenses(fromClient.getLicenses());
            store(existing);
        }

        if(existing == null){
	        store(fromClient);
        }
    }
public void storeIfNew ( final DbArtifact fromClient ) { final DbArtifact existing = repositoryHandler . getArtifact ( fromClient . getGavc ( ) ) ; if ( existing != null ) { existing . setLicenses ( fromClient . getLicenses ( ) ) ; store ( existing ) ; } if ( existing == null ) { store ( fromClient ) ; } }
If the Artifact does not exist, it will add it to the database. Nothing if it already exit.

@param fromClient DbArtifact