PluginInstallerGBean installer = KernelRegistry.getSingleKernel().getGBean(PluginInstallerGBean.class);
Artifact artifact = null;
if ("yes".equals(specify)) {
artifact = new Artifact(groupId, artifactId, version, fileType);
} else {
artifact = installer.calculateArtifact(file, basename, groupId);
}
if (artifact==null) {
addErrorMessage(actionRequest, "Can not calculate the Artifact string automatically. Please manually specify one.");
return;
}