Map<String, IActionSequenceResource> resourceMap = new HashMap<String, IActionSequenceResource>();
if ( resourceNames != null && resourceNames.size() > 0 ) {
it = resourceNames.iterator();
while ( it.hasNext() ) {
String name = (String) it.next();
IActionSequenceResource resource = getResource( name );
name = name.replace( "-", "" ); //$NON-NLS-1$ //$NON-NLS-2$
resourceMap.put( name, resource );
List<Method> methods = setMethods.get( name.toUpperCase() );
if ( methods != null ) {
for ( Method method : methods ) {
Class<?>[] paramTypes = method.getParameterTypes();
if ( paramTypes.length == 1 ) {
Object value = null;
if ( paramTypes[0] == InputStream.class ) {
value = resource.getInputStream( RepositoryFilePermission.READ, LocaleHelper.getLocale() );
} else if ( paramTypes[0] == IActionSequenceResource.class ) {
value = resource;
} else if ( paramTypes[0] == String.class ) {
value = getRuntimeContext().getResourceAsString( resource );
} else if ( paramTypes[0] == Document.class ) {