RestID restID = null;
if (parameters != null && parameters[0] instanceof RestID)
restID = (RestID) parameters[0];
else
restID = (RestID) IDFactory.getDefault().createID(RestNamespace.NAME, parameters);
return new RestClientContainer(restID);
} catch (Exception e) {
throw new ContainerCreateException("Could not create RestClientContainer", e); //$NON-NLS-1$
}
}