protected static AbstractResource getResourceWithVersion( AbstractResource oslcResource, String revision) { AbstractResource oslcResourceWithVersion = oslcResource; oslcResourceWithVersion.setAbout( URI.create(oslcResource.getAbout().toString() + "---revision" + revision)); return oslcResourceWithVersion; }
protected static AbstractResource[] getResourcesWithVersion( AbstractResource[] oslcResources, String revision) { AbstractResource[] oslcResourcesWithVersion = new AbstractResource[oslcResources.length]; int i = 0; for (AbstractResource amesimBlock : oslcResources) { amesimBlock.setAbout( URI.create(amesimBlock.getAbout().toString() + "---revision" + revision)); oslcResourcesWithVersion[i] = amesimBlock; i++; } return oslcResourcesWithVersion; }