private void loadData(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixFilterException, FenixServiceException {
private void loadData(ActionForm form, HttpServletRequest request) throws FenixFilterException, FenixServiceException {
	private void loadData(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws FenixFilterException, FenixServiceException {		String id = request.getParameter("idInternal");		if (id == null) return;				Integer idInternal = Integer.valueOf(id);						IUserView userView = SessionUtils.getUserView(request);				InfoPublication publication = (InfoPublication) ServiceUtils.executeService(userView,		        "ReadPublicationByInternalId", new Object[] {idInternal,userView});		DynaActionForm actionForm = (DynaActionForm)form;				//ERROR this should not happen - domain object in presentation		IPublicationType iPublicationType = (IPublicationType) ServiceUtils.executeService(userView,				"ReadPublicationType", new Object[] {publication.getInfoPublicationType().getIdInternal()});		InfoPublicationType infoPublicationType = InfoPublicationType.newInfoFromDomain(iPublicationType);		if (infoPublicationType != null) actionForm.set("infoPublicationTypeId",infoPublicationType.getIdInternal());				if (publication.getTitle() != null) actionForm.set("title",publication.getTitle());		if (publication.getInfoPublicationType().getIdInternal() != null) actionForm.set("infoPublicationTypeId",publication.getInfoPublicationType().getIdInternal());		if (publication.getSubType() != null) actionForm.set("subtype",publication.getSubType());		if (publication.getJournalName() != null) actionForm.set("journalName",publication.getJournalName());		if (publication.getVolume() != null) actionForm.set("volume",publication.getVolume());		if (publication.getFirstPage() != null) actionForm.set("firstPage",publication.getFirstPage());		if (publication.getLastPage() != null) actionForm.set("lastPage",publication.getLastPage());		if (publication.getLanguage() != null) actionForm.set("language",publication.getLanguage());		if (publication.getFormat() != null) actionForm.set("format",publication.getFormat());		if (publication.getObservation() != null) actionForm.set("observation",publication.getObservation());		if (publication.getNumber() != null) actionForm.set("number",publication.getNumber());		if (publication.getMonth() != null) actionForm.set("month",publication.getMonth());		if (publication.getYear() != null) actionForm.set("year",publication.getYear());		if (publication.getMonth_end() != null) actionForm.set("month_end",publication.getMonth_end());		if (publication.getYear_end() != null) actionForm.set("year_end",publication.getYear_end());		if (publication.getEditor() != null) actionForm.set("editor",publication.getEditor());		if (publication.getCountry() != null) actionForm.set("country",publication.getCountry());		if (publication.getIssn() != null) actionForm.set("issn",publication.getIssn());		if (publication.getScope() != null) actionForm.set("scope",publication.getScope());		if (publication.getUrl() != null) actionForm.set("url",publication.getUrl());		if (publication.getEditorCity() != null) actionForm.set("editorCity",publication.getEditorCity());		if (publication.getNumberPages() != null) actionForm.set("numberPages",publication.getNumberPages());		if (publication.getEdition().toString() != null) actionForm.set("edition",publication.getEdition().toString());		if (publication.getFascicle().toString() != null) actionForm.set("fascicle",publication.getFascicle().toString());		if (publication.getSerie().toString() != null) actionForm.set("fascicle",publication.getSerie().toString());		if (publication.getIsbn() != null) actionForm.set("isbn",publication.getIsbn());		if (publication.getLocal() != null) actionForm.set("local",publication.getLocal());		if (publication.getConference() != null) actionForm.set("conference",publication.getConference());		if (publication.getInstituition() != null) actionForm.set("instituition",publication.getInstituition());		if (publication.getOriginalLanguage() != null) actionForm.set("originalLanguage",publication.getOriginalLanguage());		if (publication.getTranslatedAuthor() != null) actionForm.set("translatedAuthor",publication.getTranslatedAuthor());		if (publication.getCriticizedAuthor() != null) actionForm.set("criticizedAuthor",publication.getCriticizedAuthor());		if (publication.getPublicationType() != null) actionForm.set("publicationType",publication.getPublicationType());		if (publication.getUniversity() != null) actionForm.set("university",publication.getUniversity());		if (publication.getDidatic() != null) actionForm.set("isDidatic",publication.getDidatic());		actionForm.set("idInternal",idInternal);						Iterator iter = publication.getInfoPublicationAuthors().iterator();		String[] names = new String[publication.getInfoPublicationAuthors().size()];		Integer[] ids = new Integer[publication.getInfoPublicationAuthors().size()];				for (int i=0; i<publication.getInfoPublicationAuthors().size();i++) {			InfoAuthor author = (InfoAuthor)iter.next();						if (author.getAuthor() != null && !author.getAuthor().equals("")) {				names[i] = author.getAuthor();			}			else {				InfoPerson infoPerson = (InfoPerson) ServiceUtils.executeService(userView, "ReadPerson",												new Object[] { author.getKeyPerson() });				names[i] = infoPerson.getNome();			}						ids[i] = author.getIdInternal();		}				actionForm.set("authorsName",names);		actionForm.set("authorsId",ids);				/*			autores podem vir a null...			os campos de selec??o n?o est?o a aparecer bem preenchidos, os malandros		*/	}