@Override
protected String getDefaultMimeExtension(AutoMountContext context, TypeElement elem)
{
String mimeExtension = "";
SecureAutoMount annotation = context.getAppAnnotation(SecureAutoMount.class);
if (annotation != null)
{
if (isSecureElement(elem))
{
mimeExtension = annotation.secureMimeExtension();
} else
{
mimeExtension = annotation.defaultMimeExtension();
}
}
if (!mimeExtension.isEmpty() && !mimeExtension.startsWith("."))
{
mimeExtension = "." + mimeExtension;