TBPermission perm2 = getAnalysisService().getPermission(username, analysis_id);
if (perm2 == TBPermission.WRITE || perm2 == TBPermission.READ_ONLY
|| perm2 == TBPermission.SUBMITTED_WRITE) {
BeanUtils.copyProperties(analysisStep, analysisStepCommand);
Software software = analysisStep.getSoftwareInfo();
analysisStepCommand.setSoftwareInfo(software);
Algorithm algorithm = analysisStep.getAlgorithmInfo();
if ( algorithm != null ) {
analysisStepCommand.setAlgorithmType(algorithm.getAlgorithmType());
analysisStepCommand.setAlgorithmMap(algorithm.getAlgorithmType(), algorithm);