package org.example.published;

import javax.enterprise.event.Observes;
import javax.inject.Singleton;

import org.jboss.forge.container.event.PostStartup;
import org.jboss.forge.container.services.Remote;

/**
 * @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
 */
@Remote
@Singleton
public class PublishedService
{
   public void onStartup(@Observes PostStartup event)
   {
      System.out.println(getMessage());
   }
   
   public String getMessage()
   {
      return "I am PublishedService.";
   }

   public ClassLoader getClassLoader()
   {
      return getClass().getClassLoader();
   }
}

@@ -42,118 +42,26 @@
 vax.
-enterprise.event.Observes;%0Aimport javax.inject.Singleton;%0A%0Aimport org.jboss.forge.container.event.PostStartup;
+inject.Singleton;%0A
 %0Aimp
@@ -247,116 +247,8 @@
 e%0A%7B%0A
-   public void onStartup(@Observes PostStartup event)%0A   %7B%0A      System.out.println(getMessage());%0A   %7D%0A   %0A
    p

Remove confusing messages