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;
 }
 /**
  * Creates an OSLC resource representing the simulink element with the specified id in the
  * specified system.
  *
  * @param commandFactory The matlab command factory to use.
  * @param id The id of the simulink element.
  * @param systemId The id of the simulink system.
  * @return The OSLC resource representing the simulink element.
  */
 public AbstractResource build(
     final MatlabCommandFactory commandFactory, final String id, final String systemId) {
   AbstractResource resource = null;
   try {
     resource = newInstance();
   } catch (final URISyntaxException e) {
     e.printStackTrace();
   }
   if (resource != null) resource.setAbout(getAbout(id, systemId));
   build(commandFactory, id, systemId, resource);
   return resource;
 }