# Creating a Java class

## Procedure

1. From the repository tree view, expand the Code node and right click the Beans node. In the contextual menu, select Create Bean.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_ccxf5.png)
2. The New Bean wizard opens. In the Name field, type in a name for the bean, for example, *CXFdemobean*. Click Finish to close the wizard.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_ccxf6.png)
3. Change the class type to interface, change the return type to string and remove the message body.
   ```
   package beans;

   public interface CXFdemobean {
       public String helloExample(String message) ;
   }
   ```
4. Press Ctrl+S to save your bean.