new wolParser().Tokens.putAll(com.snaulx.wolparser.platforms.(buffer.toString()).Parser.addTokens()); buffer is a StringBuilder derived from user input. (buffer.toString ()) is the name of the package and I need to convert it so that the Map from the package entered by the user is added to the Map Tokens. How to do it?