String entityName = s.substring(ampersandIndex + 1, semicolonIndex);
int c = convertEntity(entityName, mxmlDialect);
if (c == -1)
{
// If it doesn't convert to a character, create a problem and return null.
ICompilerProblem problem = new MXMLInvalidEntityProblem(location, physicalText);
problems.add(problem);
}
else
{
// If it does convert, add a fragment for the entity.