package <%= packageId %>;

<% for(const imp of delegationService.imports) { %>
import <%= imp %>;
<% } %>

public class DelegationService extends
        com.google.androidbrowserhelper.trusted.DelegationService {
    public DelegationService() {
        <% for(const code of delegationService.classConstructor) { %>
            <%= code %>
        <% } %>
    }
}


@@ -215,36 +215,73 @@
     
-public DelegationService() %7B
+@Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A
 %0A   

Move the DelegationService constructor fields into onCreate. (#410)