@Override
public String getEngine(String reportId) {
reportId = reportId.substring(reportId.indexOf('_') + 1);
String result = "";
if (isConfigOk()) {
<BUG>m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "engine/" + reportId);
</BUG>
try {
<BUG>result = m_webResource.get(String.class);
} catch (Exception e) {
logger.error("Error requesting engine by id. Error message: '{}' URI was: '{}'", e.getMessage(), m_webResource.getURI());
</BUG>
e.printStackTrace();

@Override
public String getReportService(String reportId) {
reportId = reportId.substring(reportId.indexOf('_') + 1);
String result = "";
if (isConfigOk()) {
WebTarget target = getTarget(m_remoteRepositoryDefintion.getURI() + "reportService/" + reportId);
try {
result = getBuilder(target).get(String.class);
} catch (Exception e) {
logger.error("Error requesting report service by report id. Error message: '{}' URI was: '{}'", e.getMessage(), target.getUri());
e.printStackTrace();
