* @see org.apache.jetspeed.capabilities.Capabilities#createMimeType(String)
*/
public MimeType createMimeType(String mimeType)
throws ClassNotFoundException
{
MimeType mimeTypeobj = null;
if (mimeType != null)
{
//try to find it in space
mimeTypeobj = this.getMimeType(mimeType);
if (mimeTypeobj != null)
return mimeTypeobj;
}
try
{
mimeTypeobj = (MimeType) beanFactory.getBean(
this.mimeTypeBeanName, MimeType.class);
mimeTypeobj.setName(mimeType);
return mimeTypeobj;
} catch (Exception e)
{
log.error("Failed to create capability instance for " + this.mimeTypeBeanName
+ " error : " + e.getLocalizedMessage());