{
// Instantiate the resource item according to the mime type
if (mimeType.equals("text/plain"))
{
// Speed shortcut for plain text to avoid reflection
resourceItem = new TPlain();
}
else
{
Class resourceItemClass = ResourceItemTypes.determineResourceItemClass(mimeType);