private String rename ( final String group , final InputStream input ) throws Exception { try { final String newName = getManagerFactory ( ) . create ( ) . getNamingStrategy ( ) . rename ( group , input ) ; groupNames . setProperty ( group , newName ) ; return newName ; } catch ( final IOException e ) { throw new MojoExecutionException ( "Error occured during renaming" , e ) ; } }
Encodes a version using some logic .