if (scanParametersBean != null && application != null) {
FrameworkType frameworkType =
FrameworkType.getFrameworkType(scanParametersBean.getApplicationType());
SourceCodeAccessLevel accessLevel =
SourceCodeAccessLevel.getSourceCodeAccessLevel(scanParametersBean.getSourceCodeAccessLevel());
application.setFrameworkType(frameworkType.toString());
application.setSourceCodeAccessLevel(accessLevel.toString());
if (scanParametersBean.getSourceCodeUrl() != null &&
scanParametersBean.getSourceCodeUrl().length() < Application.URL_LENGTH) {
application.setRepositoryUrl(scanParametersBean.getSourceCodeUrl());
}