// Configuração dos Handlers
final List<IDownloadHandler> handlersList = SubTitleManager.getExistingHandlers();
for (IDownloadHandler handler : handlersList) {
try {
DownloadHandlerVO handlerVO = (DownloadHandlerVO) handler.getHandlerVOType().newInstance();
Method[] metodos = handlerVO.getClass().getMethods();
int paramCount = 2;
for (Method metodo : metodos)
if (metodo.getName().startsWith("set"))
paramCount++;
String nomeHandle = handler.getClass().getSimpleName();
addLocalisedMessage(localeUtil, nomeHandle, handler.getDescription());
addLocalisedMessage(localeUtil, handler.getSiteUrl(), handler.getSiteUrl());
Parameter[] parametros = new Parameter[paramCount];
parametros[0] = cfg.addHyperlinkParameter2(handler.getSiteUrl(), handler.getSiteUrl());
parametros[1] = cfg.addBooleanParameter2(nomeHandle, _BaseConfigName + ".Active", false);
paramCount = 2;
for (Method metodo : metodos) {
if (metodo.getName().startsWith("set")) {
Class<?> typeParam = metodo.getParameterTypes()[0];
String nomeProp = metodo.getName().substring(3);
String nomePropPlugin = handler.getClass().getSimpleName() + "." + nomeProp;
String resourceMessage = _BaseConfigName + "." + handlerVO.getClass().getSimpleName() + "." + nomeProp;
if ((handler.getLogonType() == IDownloadHandler.LogonType.None) &
((metodo.getName().equals("setUserName")) || (metodo.getName().equals("setPassword"))))
continue;