For pixlib remoting package.
<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="com.pf.fdt.ui.editor.template.actionscript" deleted="false" description="Creates concrete service locator class for pixlib framework" enabled="true" name="servicelocator">import com.bourre.core.HashCodeFactory; import com.bourre.remoting.ServiceProxyLocator; import com.bourre.log.PixlibStringifier; class ${enclosing_package_and_type} extends ServiceProxyLocator { private static var _oI : ${enclosing_type}; /** * @return singleton instance of ${enclosing_type} */ public static function getInstance() : ${enclosing_type} { if (!_oI) _oI = new ${enclosing_type}(); return _oI; } private function ${enclosing_type}() { super(); } public function init( remotingURL : String ) : Void { gatewayURL = remotingURL; } /** * Returns the string representation of this instance. * @return the string representation of this instance */ public function toString() : String { return PixlibStringifier.stringify( this ); } }</template></templates>