public Instance createInstance(String name, String imageId, String profileId, String realmId, String keyId,
String memory, String storage) throws DeltaCloudClientException {
try {
InputStream response = request(
new CreateInstanceRequest(baseUrl, name, imageId, profileId, realmId, keyId, memory, storage));
Instance instance = new InstanceUnmarshaller().unmarshall(response, new Instance());
// TODO: WORKAROUND for
// https://issues.jboss.org/browse/JBIDE-8005
if (keyId != null) {
instance.setKeyId(keyId);
}