public class WADLGenerator {
public static String generateWADLForMashupRESTService(String myCocktailPath, int mashupId) throws DAOException, IOException {
Mashup mashup = getMashup(mashupId);
ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
Application application = applicationDocument.addNewApplication();
Resources resources = application.addNewResources();
resources.setBase(myCocktailPath);
Resource resource = resources.addNewResource();
resource.setPath("RESTService/mashupId="+mashupId);