UIFunctions uiFunctions = getUIFunctions(); if (uiFunctions instanceof UIFunctionsSWT) { return (UIFunctionsSWT)uiFunctions; } return null;