It's possible to create elements by implementing the ElementAware interface. You have to implement one additional method public void noticeElement(ElementSupport element) which should be used to store the actual element instance that you receive from the engine in a member variable. You can then use this member variable to perform your logic in the processElement() method.
For example:
public class SimpleInterface implements ElementAware
{
private ElementSupport mElement = null;
public void noticeElement(ElementSupport element)
{
mElement = element;
}
public void processElement()
{
mElement.print("Just some text "+
mElement.getRemoteAddr()+":"+
mElement.getRemoteHost()+":"+
mElement.getPathInfo());
}
}