public static VersionedStompFrameHandler getHandler(StompConnection connection, StompVersions version)
{
if (version == StompVersions.V1_0)
{
return new StompFrameHandlerV10(connection);
}
if (version == StompVersions.V1_1)
{
return new StompFrameHandlerV11(connection);
}