/**
  * Creates a new DPT translator for the specified property type.
  *
  * <p>The translator is initialized with a subtype as specified by the property map. Also,
  * appending of units is disabled in the returned translator.
  *
  * @param dataType property data type to get the associated translator for
  * @return the created DPT translator
  * @throws KNXException on PDT not found or translator could not be created
  * @see TranslatorTypes#createTranslator(int, String)
  */
 public static DPTXlator createTranslator(final int dataType) throws KNXException {
   final DPTID dpt = pt.get(dataType);
   if (dpt == null) throw new KNXException("PDT not found");
   final DPTXlator t = TranslatorTypes.createTranslator(dpt.getMainNumber(), dpt.getDPT());
   t.setAppendUnit(false);
   return t;
 }
 /* (non-Javadoc)
  * @see junit.framework.TestCase#setUp()
  */
 protected void setUp() throws Exception {
   super.setUp();
   LogManager.getManager().addWriter("DPTXlator", Util.getLogWriter());
   TranslatorTypes.createTranslator(0, "29.011");
   t = new DPTXlator64BitSigned(DPTXlator64BitSigned.DPT_ACTIVE_ENERGY);
 }