<commit_before>package org.jwaf.platform.message;

import javax.inject.Inject;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import org.jwaf.message.persistence.entity.ACLMessage;
import org.jwaf.platform.annotation.resource.EJBJNDIPrefix;

public class PlatformMessageManager
{
	@Inject @EJBJNDIPrefix
	private String ejbJNDIPrefix;
	
	public void handle(ACLMessage content)
	{
		try
		{
			PlatformMessageHandler handler = findHandler(content.getUserDefinedParameters().get(MessageParam.PLATFORM_MESSAGE));
			
			handler.handlePlatformMessage(content);
		} 
		catch 
		(NamingException e)
		{
			// TODO log PlatformMessageManager  NamingException
			e.printStackTrace();
		}
	}
	
	private PlatformMessageHandler findHandler(String type) throws NamingException
	{
		return (PlatformMessageHandler)(new InitialContext()).lookup(ejbJNDIPrefix + type);
	}
}
<commit_msg>- fix @Stateless @LocalBean on PlatformMessageManager<commit_after>package org.jwaf.platform.message;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import org.jwaf.message.persistence.entity.ACLMessage;
import org.jwaf.platform.annotation.resource.EJBJNDIPrefix;

@Stateless
@LocalBean
public class PlatformMessageManager
{
	@Inject @EJBJNDIPrefix
	private String ejbJNDIPrefix;
	
	public void handle(ACLMessage content)
	{
		try
		{
			PlatformMessageHandler handler = findHandler(content.getUserDefinedParameters().get(MessageParam.PLATFORM_MESSAGE));
			
			handler.handlePlatformMessage(content);
		} 
		catch 
		(NamingException e)
		{
			// TODO log PlatformMessageManager  NamingException
			e.printStackTrace();
		}
	}
	
	private PlatformMessageHandler findHandler(String type) throws NamingException
	{
		return (PlatformMessageHandler)(new InitialContext()).lookup(ejbJNDIPrefix + type);
	}
}

{'fraction_non_alphanumeric': 0.08501006036217304, 'fraction_numerical': 0.0, 'mean_word_length': 4.449315068493151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6440520', 'n_tokens_mistral': 656, 'n_tokens_neox': 613, 'n_words': 105}