class CheckmarxInstallSetupImpl extends AbstractInstallSetup implements CheckmarxInstallSetup {

	@Override
	public Long getPresetIdForNewProjects(String projectId) {
		String id = scanConfigService.getNamePatternIdProvider(MappingIdentifier.CHECKMARX_NEWPROJECT_PRESET_ID).getIdForName(projectId);
		try {
			return Long.valueOf(id);
		}catch(NumberFormatException e) {
			LOG.error("Was not able to handle preset id for project {} will provide null instead",projectId);
			return null;
		}
	}

}