code: package com.swtworkbench.community.xswt.dataparser.parsers;
  
  import org.eclipse.swt.widgets.Display;
  
  import com.swtworkbench.community.xswt.XSWTException;
  import com.swtworkbench.community.xswt.dataparser.NonDisposableDataParser;
  
  public class DeviceDataParser extends NonDisposableDataParser {
      public Object parse(String source) throws XSWTException {
          if (source.equalsIgnoreCase("null")) {
              return Display.getCurrent();
          }
  
          return Display.getCurrent();
      }
  }