public String run(Integer exerciseId, Integer imageId, String path) throws FenixServiceException, ExcepcaoPersistencia { this.path = path.replace('\\', '/'); Question question = rootDomainObject.readQuestionByOID(exerciseId); ParseQuestion parse = new ParseQuestion(); String image; try { image = parse.parseQuestionImage(question.getXmlFile(), imageId.intValue(), this.path); } catch (Exception e) { throw new FenixServiceException(e);
public String run(Integer exerciseId, Integer metadataCode, Integer imageId, String path) throws FenixServiceException, ExcepcaoPersistencia {  Metadata metadata = rootDomainObject.readMetadataByOID(metadataCode); for (Question question : metadata.getVisibleQuestions()) { if(question.getIdInternal().equals(exerciseId)){ ParseQuestion parse = new ParseQuestion(); String image; try { image = parse.parseQuestionImage(question.getXmlFile(), imageId.intValue(), path.replace('\\', '/')); } catch (Exception e) { throw new FenixServiceException(e); } return image;  }
    public String run(Integer exerciseId, Integer imageId, String path) throws FenixServiceException, ExcepcaoPersistencia {        this.path = path.replace('\\', '/');        Question question = rootDomainObject.readQuestionByOID(exerciseId);        ParseQuestion parse = new ParseQuestion();        String image;        try {            image = parse.parseQuestionImage(question.getXmlFile(), imageId.intValue(), this.path);        } catch (Exception e) {            throw new FenixServiceException(e);        }        return image;    }