code: @Override
  	public void defineEntityReplacementText(String entity, String value) {
  		if (processDocDecl) {
  			throw new IllegalStateException("Entity replacement text may not be defined with DOCTYPE processing enabled.");
  		}
  		if (reader == null) {
  			throw new IllegalStateException("Entity replacement text must be defined after setInput()");
  		}
  		if (documentEntities == null) {
  			documentEntities = new HashMap<String, char[]>();
  		}
  		documentEntities.put(entity, value.toCharArray());
  	}
docs: /* (non-Javadoc)
  @see com.abubusoft.kripton.xml.XmlPullParser#defineEntityReplacementText(java.lang.String, java.lang.String)