/** * Determine if server supports debug mode, if necessary by sending a * request to the server. The information is cached for quicker, subsequent * checks. * */ protected synchronized void requestAllowDebug(CloudFoundryOperations client) throws CoreException { // Check the debug support of the server once per working copy of server if (isDebugModeSupported == DebugSupportCheck.UNCHECKED) { isDebugModeSupported = client.getCloudInfo().getAllowDebug() ? DebugSupportCheck.SUPPORTED : DebugSupportCheck.UNSUPPORTED; } }