/* (non-Javadoc)
* @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#getDefaultVersion()
*/
@Override
public VersionDTO getDefaultVersion() {
VersionDTO version = null;
try {
J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "defaultVersion()");
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 fetch current container from fabric8.", e);
}
return version;
}