package my.package;
@Frontier(fqdn=true)
public class MyFrontier{
public String formatStr(String val){
//implementation comes here
}
//more frontier code goes here
}
//Calling frontier from javascript
my.package.MyFrontier.formatStr("The Value").try(function(result){
//do something
});