IValueVariable variable = DebugPlugin.getDefault().getStringVariableManager().getValueVariable("${catalina_home}");
IValueVariable variable = DebugPlugin.getDefault().getStringVariableManager().getValueVariable("catalina_home");
	public static String getCatalinaHome() throws CoreException {		IValueVariable variable = DebugPlugin.getDefault().getStringVariableManager().getValueVariable("${catalina_home}"); //$NON-NLS-1$		IStatus err = null;		if (variable == null) {			err = new Status(IStatus.ERROR, JspUIPlugin.getDefault().getDescriptor().getUniqueIdentifier(), 0, LaunchingMessages.getString("TomcatLaunchDelegate.9"), null); //$NON-NLS-1$		} else {			String home = variable.getValue();				if (home != null && home.length() > 0) {				File file = new File(home);				if (file.exists() && file.isDirectory()) {					return home;				} else {					err = new Status(IStatus.ERROR, JspUIPlugin.getDefault().getDescriptor().getUniqueIdentifier(), 0, MessageFormat.format(LaunchingMessages.getString("TomcatLaunchDelegate.7"), new String[]{home}), null); //$NON-NLS-1$				}			} else {				err = new Status(IStatus.ERROR, JspUIPlugin.getDefault().getDescriptor().getUniqueIdentifier(), 0, LaunchingMessages.getString("TomcatLaunchDelegate.8"), null); //$NON-NLS-1$			}		}		throw new CoreException(err);	}