* @return theme name if find the theme, otherwise empty string.
*/
public static String getThemeName(FileObject main) {
final Set<String> themes = new HashSet<String>();
try {
ParserManager.parse(Collections.singleton(Source.create(main)), new UserTask() {
@Override
public void run(ResultIterator resultIterator) throws Exception {
if (resultIterator == null) {
return;
}