code: public SimpleFeature convertDwgMText( String typeName, String layerName, DwgMText text, int id ) {
          double[] p = text.getInsertionPoint();
          Point2D pto = new Point2D.Double(p[0], p[1]);
          Coordinate coord = new Coordinate(pto.getX(), pto.getY(), 0.0);
          String textString = text.getText();
  
          return createPointTextFeature(typeName, layerName, id, coord, textString);
      }
docs: Builds a point feature from a dwg text.