/* (non-Javadoc)
* @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#createVersion(java.lang.String, java.lang.String)
*/
@Override
public VersionDTO createVersion(String parentVersionId, String versionId) {
VersionDTO version = null;
try {
J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "createVersion(java.lang.String, java.lang.String)", parentVersionId, versionId);
J4pExecResponse response = getJolokiaClient().execute(request);
Map<String, Object> values = response.getValue();
version = new VersionDTO(this.fabricFacade, values);
} catch (Exception e) {
Fabric8CorePlugin.getLogger().error("Failed to create subversion with id '" + versionId + "' under version '" + parentVersionId + "'.", e);
}
return version;
}