Source:
<code>public void createPOM(File pomLocation) throws Exception { ProjectDataModel modelkushan = getModel(); log.info("ProjectDataModel sucssefully created"); MavenInfo mavenInfo = modelkushan.getMavenInfo(); <START> log.info("MavenInfo sucssefully created"); <END> String customGroupId = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", GLOBAL_MAVEN_GROUP_ID, null, null); String customVersion = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", GLOBAL_MAVEN_VERSION, null, null); MavenProject mavenProject = MavenUtils.createMavenProject(customGroupId != null ? customGroupId : mavenInfo.getGroupId(), mavenInfo.getArtifactId(), customVersion != null ? customVersion : mavenInfo.getVersion(), mavenInfo.getPackageName()); Parent parentProject = getModel().getMavenInfo().getParentProject(); log.info("parent project creartion sucsseful"); if (parentProject != null) { log.info("if parent null"); mavenProject.getModel().setParent(parentProject); log.info("get model and set parent"); } String disableWSO2Repo = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", DISABLE_WSO2_REPOSITORY, null, null); if (disableWSO2Repo == null) { log.info("if disable reapo"); MavenUtils.updateMavenRepo(mavenProject); log.info("update reapo"); } Repository globalRepositoryFromPreference = getGlobalRepositoryFromPreference(); log.info("global repo"); if (globalRepositoryFromPreference != null) { log.info("if global repo null"); mavenProject.getModel().addRepository(globalRepositoryFromPreference); log.info("add repo"); mavenProject.getModel().addPluginRepository(globalRepositoryFromPreference); log.info("add plugin repo"); } log.info("saving pro"); MavenUtils.saveMavenProject(mavenProject, pomLocation); log.info("save sucsessful"); }</code><technical_language>1. is usefulness of separating in 2 steps? 2. is modelkushan???? is kushan????? This is absolutely ridiculous!!! CHANGE variable name 3. Remove INFO Logs. Change DEBUG</technical_language>

Target:
public void createPOM(File pomLocation) throws Exception { MavenInfo mavenInfo = getModel().getMavenInfo(); String customGroupId = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", GLOBAL_MAVEN_GROUP_ID, null, null); String customVersion = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", GLOBAL_MAVEN_VERSION, null, null); MavenProject mavenProject = MavenUtils.createMavenProject(customGroupId != null ? customGroupId : mavenInfo.getGroupId(), mavenInfo.getArtifactId(), customVersion != null ? customVersion : mavenInfo.getVersion(), mavenInfo.getPackageName()); Parent parentProject = getModel().getMavenInfo().getParentProject(); if (parentProject != null) { mavenProject.getModel().setParent(parentProject); } String disableWSO2Repo = preferencesService.getString("org.wso2.developerstudio.eclipse.platform.ui", DISABLE_WSO2_REPOSITORY, null, null); if (disableWSO2Repo == null) { MavenUtils.updateMavenRepo(mavenProject); } Repository globalRepositoryFromPreference = getGlobalRepositoryFromPreference(); if (globalRepositoryFromPreference != null) { mavenProject.getModel().addRepository(globalRepositoryFromPreference); mavenProject.getModel().addPluginRepository(globalRepositoryFromPreference); } MavenUtils.saveMavenProject(mavenProject, pomLocation); }