//#if ${device.vendor} == nokia
   import com.nokia.mid.ui.DeviceControl;
//#elseif ${device.vendor} == samsung
   import com.samsung.util.LCDLight;
//#endif

public class LCDUtils
{
....
   public static void keepBacklightOn()
   {
      //#if ${device.vendor} == nokia
         DeviceControl.setLights(0,100);
      //#elseif ${device.vendor} == samsung
         LCDLight.on();
      //#endif
   }
...
}
